<div class="bloc pub">
        <?php $pubs = Doctrine_core::getTable('Pub')->findByEmplacementId(3); ?>
	<div class="header-bloc"><h2>Pub</h2></div>
	<div class="bloc-content pubs_content" id="left_pubs_content">
		<?php foreach($pubs as $pub): ?>
			<img height="103" width="204" alt="" src="/uploads/pubs/<?php echo $pub->getImage() ?>" />
	   <?php endforeach; ?>
	</div>
        <div class="footer-bloc"></div>
</div>
<div class="bloc magazine">
    <div class="header-bloc"><h2>Lire votre magazine</h2></div>
    <?php $thisnews=  getPageGarde() ?>
    <?php $params=  array('id' => $thisnews[0], 'slug' => $thisnews[3]) ?>
    <div class="bloc-content"><a href="<?php echo url_for2('showmagazine',$params,true) ?>" title="<?php echo $thisnews[1] ?>"><img src="/uploads/journal/<?php echo $thisnews[2] ?>" alt="<?php echo $thisnews[1]?>" /></a>
    </div>
    <div class="footer-bloc"></div>
</div>
<div class="bloc forum">
	<div class="header-bloc"><h2>Forums</h2></div>
	<div class="bloc-content">
		<ul>
			<?php $i = 0; ?>
			<?php $topics = Doctrine_core::getTable('forumTopic')->getActiveTopics(); ?>
			<?php foreach($topics as $topic): ?>
			<?php if($i > 2) { break; } ?>
			<li class="topic-forum">
                            <a href="<?php echo url_for('@show_forum_topic?id='. $topic->getId()); ?> "> <?php echo $topic->getsubject() ?> </a>
                        </li>
			<?php $i++; ?>
			<?php endforeach; ?>
		</ul>
	</div>
        <div class="footer-bloc"></div>
</div>
<div class="bloc faq">
	<div class="header-bloc"><h2>foire aux Questions</h2></div>
	<div class="bloc-content">
		<ul>
			<?php foreach($getFaq as $faq): {?>
			<li class="text-faq"><span> Question :</span><?php echo $faq->getQuestion() ?></li>
			<li><span> Reponse :</span><?php echo stripslashes($faq->getReponse(ESC_RAW)) ?></li>
			<?php } endforeach ?>
			<li class="liens"><a href="<?php echo url_for ('@faqlist'); ?>">Tout Voir</a></li>
		</ul>
	</div>
        <div class="footer-bloc"></div>
</div>